package mlz.c_log;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/*
    Logback
 */
public class LogDemo {
    //创建一个Logger日志对象
    public static final Logger LOGGER = LoggerFactory.getLogger("LogDemo");

    public static void main(String[] args) {
        LOGGER.info("method方法开始执行....");
        method(10,2);
        LOGGER.info("method方法开始成功....");
    }

    //静态方法
    public static void method(int a,int b){
        LOGGER.debug("参数1:" + a);
        LOGGER.debug("参数2:" + b);
        int c = a / b;
        LOGGER.info("结果是:" + c);
    }
}
















